home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Windows Expert
/
Windows Expert.iso
/
windownt
/
mypal.zip
/
MYPAL.H
< prev
next >
Wrap
C/C++ Source or Header
|
1993-02-17
|
512b
|
19 lines
// Porting macros
#ifdef WIN32
typedef POINTS MPOINT;
#define LONG2POINT(l, pt) ((pt).x = (SHORT)LOWORD(l), (pt).y = (SHORT)HIWORD(l))
#else
typedef POINT MPOINT;
#define LONG2POINT(l, pt) ((pt).x = (INT)LOWORD(l), (pt).y = (INT)HIWORD(l))
#endif
#define PALETTESIZE 256 /* Number of entries in the system palette */
typedef struct tagRGPT { /* Values for setting Min Max info */
INT iInfo[10];
} RGPT;
typedef RGPT FAR *LPRGPT;
extern VOID ShowColor(HWND, HDC);